Skip to content

Conversation

@webdevred
Copy link
Owner

@webdevred webdevred commented Dec 25, 2025

1. prepare_installer.sh updates

  • Generalizes processing to all .jbeam files in ./examples/jbeam.
  • Introduces per-file temporary directories with cleanup via trap.
  • Special handling for frame.jbeam to ensure dependent transformations (e.g., fender.jbeam) are applied correctly.
  • Simplifies experimental vs stable handling and dynamic diff checking against expected outputs.

2. Haskell module updates (Transformation.hs)

  • Exports new helper functions: findAndUpdateTextInNode, updateOtherFiles, filterJbeamFiles.
  • transform now returns UpdateNamesMap alongside nodes for downstream updates.
  • Adds updateOtherFiles for safely reading, transforming, formatting, and writing .jbeam files.

3. Formatting improvements (Formatting.hs)

  • Adds formatNodeAndWrite for writing formatted nodes with OS-specific newline handling.
  • Ensures proper conversion from Text to ByteString when writing files.

4. IO utility enhancements (IOUtils.hs)

  • Adds helpers isNotEmacsBackupFile and pathEndsWithExtension for file filtering.

@webdevred webdevred force-pushed the transformation-across-jbeam-files branch from 6650c7e to f5a8756 Compare December 25, 2025 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants